﻿@model IEnumerable<HanGu.Entity.Group>
@{
    Layout = null;
    int i = 1;
    ViewBag.ViewTitle = "会员分组";
    var SearchParma = ViewData["SearchParma"] as HanGu.Entity.UniversallySearchParam;
}
<form id="pagerForm" method="get" action="/CustomerGroup/Default/index?action=page&OpID=@ViewData["OperateID"]">
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
<input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
<input type="hidden" name="orderField" value="${param.orderField}" />
<input type="hidden" name="Title" value="@ViewData["Title"]" />
<input type="hidden" name="StarTime" value="@SearchParma.StarDateTime" />
<input type="hidden" name="EndTime" value="@SearchParma.EndDateTime" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="CustomerGroup/Default/index?action=search&OpID=@ViewData["OperateID"]"
    method="post">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    组名：
                </td>
                <td>
                    @Html.TextBox("Title", SearchParma.Ttile)
                </td>
                <td align="right">
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit" name="submit">
                                            检索</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons")
    <table class="table" width="100%" layouth="170">
        <thead>
            <tr class="header">
                <th style="width: 50px">
                    序号
                </th>
                <th>
                    组名
                </th>
                <th>
                    备注
                </th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {            
            <tr target="CustomerGroup_id" rel="@item.ID" >
                <td>
                    @i
                </td>
                <td>
                    @item.GroupName
                </td>
                <td>
                    @item.Remark
                </td>
            </tr>
            i += 1;
        }
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共【@ViewData["RowCount"] 】条,每页显示【@ViewData["pageSize"] 】条</span>
    </div>
    <div class="pagination" targettype="navTab" totalcount="@ViewData["RowCount"] "
            numperpage="@ViewData["pageSize"] " pagenumshown="10" currentpage="@Request["pageNum"] ">
    </div>
</div>
